package com.bill.common.utils;

import java.text.DecimalFormat;

public class DoubleFormat {
	private static DecimalFormat df = new DecimalFormat("0.0000");
	public static Double format(Double value){
		return Double.parseDouble(df.format(value));
	}
	
	private static DecimalFormat df4d = new DecimalFormat("0.000");
	public static Double format4d(Double value){
		return Double.parseDouble(df4d.format(value));
	}
}
